package {{ base_pkg }}.infrastructure.outbound.persistence.{{ entity.domain }}.repository.impl;

import {{ base_pkg }}.domain.{{ entity.domain }}.repository.{{ entity.name }}Repository;
import {{ base_pkg }}.domain.{{ entity.domain }}.model.aggragate.{{ entity.name }};
import {{ base_pkg }}.infrastructure.outbound.persistence.{{ entity.domain }}.mapper.{{ entity.name }}Mapper;

import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class {{ entity.name }}RepositoryImpl implements {{ entity.name }}Repository {
    private final {{ entity.name }}Mapper {{ entity.name|lower }}Mapper;

    public {{ entity.name }}RepositoryImpl({{ entity.name }}Mapper {{ entity.name|lower }}Mapper) {
        this.{{ entity.name|lower }}Mapper = {{ entity.name|lower }}Mapper;
    }

    @Override
    public void save({{ entity.name }} {{ entity.domain }}) {
        // TODO: 实现保存逻辑
    }

    @Override
    public List<{{ entity.name }}> findAll() {
        // TODO: 实现查询逻辑
        return null;
    }
} 